package com.ltmonitor.mobile.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

//用户手机GPS实时位置数据
@Entity
@Table(name = "UserGpsRealData")
@org.hibernate.annotations.Proxy(lazy = false)
public class UserGpsRealData implements Serializable  {
	// 唯一库表ID，没有实际意义
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private int iD;

	private int userId;
	
	private String userName;
	

	private String location;
	/**
	 * gps定位精度 米
	 */
	private double accuracy;

	// 经度
	private double longitude;
	// 纬度
	private double latitude;
	// 速度
	private double velocity;
	// 方向
	private int direction;

	private Date sendTime;

	private Date createDate;
	
	public UserGpsRealData()
	{
		createDate = new Date();
	}

	public final int getID() {
		return iD;
	}

	public final void setID(int value) {
		iD = value;
	}

	public final double getLongitude() {
		return longitude;
	}

	public final void setLongitude(double value) {
		longitude = value;
	}

	public final double getLatitude() {
		return latitude;
	}

	public final void setLatitude(double value) {
		latitude = value;
	}

	public final double getVelocity() {
		return velocity;
	}

	public final void setVelocity(double value) {
		velocity = value;
	}

	public final int getDirection() {
		return direction;
	}

	public final void setDirection(int value) {
		direction = value;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public double getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(double accuracy) {
		this.accuracy = accuracy;
	}
}
